<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
     template="TemplateCarrierSpace.xhtml">
     
     <ui:define name="body2" >
     
      <h:form> 
       <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
<p:dataTable var="a" value="#{espaceUsersMB.listeDeclaration(1,'Tra')}" >
<f:facet name="header">My Active Quotes</f:facet>
<p:column headerText="Shipment No.">
<p:outputLabel value="#{a.idDeclaration}" />
</p:column>

<p:column headerText="Delivery Title">
<p:outputLabel value="#{a.offre.titre}" />
</p:column>

<p:column headerText="price">
<p:outputLabel value="#{a.price}" />
</p:column>

<p:column headerText="Quote Date">
<p:outputLabel value="#{a.dateCreation}" />
</p:column>



<p:column headerText="action">


<p:menuButton value="-Select-">

       <p:menuitem value="Bid Now" actionListener="gh"  />
       <p:menuitem value="View" actionListener="gh"  icon="ui-icon-info" />
       <p:menuitem value="Accept" actionListener="#{espaceUsersMB.accepterDeclaration(a.idDeclaration)}"  icon="ui-icon-check" />
       <p:menuitem value="Decline" actionListener="#{bidMB.refuser(a.idDeclaration)}"  icon="ui-icon-close"/>
       
</p:menuButton>
</p:column>

</p:dataTable>
</h:form> 
     
     </ui:define>
     </ui:composition>